package Struct;

import java.util.ArrayList;

public class Tables {
	
	public String name;
	public ArrayList<Columns> column = new ArrayList<Columns>();
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void insertColumn(String name, String type) {
		Columns tmp = new Columns(name, type);
		column.add(tmp);
	}
	
	public ArrayList<String> getColumns() {
		ArrayList<String> src = new ArrayList<String>();
		for(Columns col : column) {
			src.add(col.getName() + "   " + col.getType());
		}
		
		return src;
	}

}

class Columns {
	private String name;
	private String type;
	
	public String getName() {
		return name;
	}
	public String getType() {
		return type;
	}

	public Columns(String name, String type) {
		this.name = name;
		this.type = type;
	}
}
